import request from '@/utils/request'

// 查询审核配置表列表
export function listApproveConfig (query) {
  return request({
    url: '/platform/approveConfig/list',
    method: 'get',
    params: query
  })
}

// 查询审核配置表详细
export function getApproveConfig (id) {
  return request({
    url: '/platform/approveConfig/' + id,
    method: 'get'
  })
}

// 新增审核配置表
export function addApproveConfig (data) {
  return request({
    url: '/platform/approveConfig',
    method: 'post',
    data: data
  })
}

// 修改审核配置表
export function updateApproveConfig (data) {
  return request({
    url: '/platform/approveConfig',
    method: 'put',
    data: data
  })
}

// 删除审核配置表
export function delApproveConfig (id) {
  return request({
    url: '/platform/approveConfig/' + id,
    method: 'delete'
  })
}


// 导出审核配置表
export function exportApproveConfig (query) {
  return request({
    url: '/platform/approveConfig/export',
    method: 'get',
    params: query
  })
}

// 获取初始化数据
export function getInitData (dictTypes) {
  return request({
    url: '/platform/approveConfig/getInitData/' + dictTypes,
    method: 'get'
  })
}
